package com.base;

import com.trello.rxlifecycle2.LifecycleTransformer;

public interface BaseContract {
    interface RootView{
//        void netWorkError();
//        void loadData();
//        void noData();
//        void setView();
        /**
         * 绑定生命周期
         *
         * @param <T>
         * @return
         */
        <T> LifecycleTransformer<T> bindToLife();
    }
    interface RootPresenter<T extends BaseContract.RootView>{
        void attachView(T view);
        void detachView();
    }
}
